package com.axonactive.yolo.dao.interfaces;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.axonactive.yolo.domain.SubscribedFlight;

public interface SubscribedFlightRepository extends JpaRepository<SubscribedFlight, Integer>{
	@Query("FROM SubscribedFlight E WHERE E.available = 1")
	public List<SubscribedFlight> findAvailableFlights();
	
	public SubscribedFlight findByFlightId(String flightId);
}
